-- GENERATED SPELL FOR [Overmaster Grindgarr] --


function spell0_20803(pUnit, Event) --@Fel Flames,n/a--
pUnit:FullCastSpellOnTarget(36487,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20803', 5000, 1)
end

function spell1_20803(pUnit, Event) --@War Stomp,n/a--
pUnit:FullCastSpellOnTarget(35238,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20803', 605, 1)
end

function Sorts_20803(pUnit, Event)
local choix_sorts_20803 = math.random(0, 1)
if choix_sorts_20803 == 0 then
pUnit:RegisterEvent('spell0_20803', 1, 1)
end
if choix_sorts_20803 == 1 then
pUnit:RegisterEvent('spell1_20803', 1, 1)
end
end

function mob20803_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20803', math.random(1500, 3000), 1)
end

function mob20803_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20803_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20803_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20803, 1, 'mob20803_Action')
RegisterUnitEvent(20803, 2, 'mob20803_Leave')
RegisterUnitEvent(20803, 3, 'mob20803_Kill')
RegisterUnitEvent(20803, 4, 'mob20803_Die')
